package com.xyoto.takeawayBusiness.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @ClassName: 修改订单状态
 * @Author: 挽风
 * @Date: 2022
 * @Copyright: 2022 by 挽风
 * @Description:
 **/

@ApiModel("修改订单状态")
@Data
public class UpdateOrderStatusDto {

    @ApiModelProperty("订单id")
    @NotEmpty(message = "订单id不能为空")
    private String orderId;

    @ApiModelProperty("状态")
    @NotNull(message = "状态值")
    private Short status;
}
